import { PluginOption } from 'vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'

export const createComponents = (): PluginOption => {
  return Components({
    dts: 'types/components.d.ts',
    resolvers: [NaiveUiResolver()],
  })
}
